{% extends "base.html" %}

{% block title %}
{% ifequal lang 'en' %}
News
{% else %}{% ifequal lang 'zh' %}
新闻
{% endifequal %}{% endifequal %}
{% endblock %}

{% block style %}
p{
font-size: 12px;
text-indent: 2em;
line-height: 14px;	
}
h{
text-align:center;
font-size: 12px;
}
{% endblock %}

{% block content %}
<div id="Content">
    <div style="width:210px" id="list">
        <img src="/media/image/{{lang}}/news.jpg" width="95" height="30" alt="News" /><br/>
        <ul style="list-style:none">
            {% for news_item in news_list %}
            <li><a href="/{{lang}}/news/{{news_item.id}}" style="text-indent:1em; letter-spacing:0; line-height:1em; padding-bottom:4px; padding-top:4px; font-weight:normal{% if news_item.id == news_id %}; color:#069{% endif %}">
                {% ifequal lang 'en' %}
                {{news_item.news_title_en}}
                {% else %}{% ifequal lang 'zh' %}
                {{news_item.news_title_zh}}
                {% endifequal %}{% endifequal %}
            </a></li>
            {% endfor %}
        </ul>
        <div>
            <span style="padding-left:0px; float:left">{% if news_previd %}<a href="/{{lang}}/news/{{news_previd}}"><u>Previous</u></a>{% endif %}</span>
            <span style="padding-right:10px; float:right">{% if news_nextid %}<a href="/{{lang}}/news/{{news_nextid}}"><u>Next</u></a>{% endif %}</span>
        </div>
    </div>
    <div id="ConRight" style="width:620px">
        <p class="styleCoo" style="text-align:center">{{news_title}}</p>
        <p align="right">{{news_datetime}}&nbsp;&nbsp;</p>
        <p>{{news_content|safe}}</p>
    </div>
    <div style="clear:both"></div>
</div>
{% endblock %}
